<?php
class Core_Common_Controllers_Plugins_Actionsetup extends Zend_Controller_Plugin_Abstract {
	
	public function dispatchLoopStartup($request) { 
		/*if(!$request->isXmlHttpRequest()) {
			$front = Zend_Controller_Front::getInstance();
			if(!$front->hasPlugin('Zend_Controller_Plugin_ActionStack')) {
				$actionStack = new Zend_Controller_Plugin_ActionStack();
				$front->registerPlugin($actionStack);
			}
			else {
				$actionStack = $front->getPlugin('ZendControllerPlugin_ActionStack');
			}*/
			/*$menuLoggin = clone($this->getRequest());
			$menuLoggin->setActionName("logged")
						->setControllerName("menu")
						->setModuleName("default");*/
			/*$auth = Zend_Auth::getInstance();
			$identity = $auth->getIdentity();
			if($identity!=null) {
				$menuAction = clone($this->getRequest());
				$menuAction->setActionName("index")
							->setControllerName("menu")
							->setModuleName("default");
				$actionStack->pushStack($menuAction);
			}
			//$actionStack->pushStack($menuLoggin);
		}*/
	}
	
}
?>